package com.zzyl.mapper;

import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @interfaceName: NursingPlanMapper
 * @description:
 * @author: ChenXu
 * @date: 2024/5/27 10:22
 * @Version: 1.0
 */
@Mapper
public interface NursingPlanMapper {
    void savePlan(NursingPlan nursingPlan);
    @Select("select * from nursing_plan")
    List<NursingPlan> findAllPlan();

    List<NursingPlanVo> selectByPage(String name, Integer status);

    void deleteById(Long id);

    void updateById(NursingPlan bean);

    NursingPlanVo findByIdPlan(Long id);
}
